<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateCareersTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateCareersLabel_CId}" for="CId" />
                    <h:inputText id="CId" value="#{careersController.selected.CId}" title="#{bundle.CreateCareersTitle_CId}" required="true" requiredMessage="#{bundle.CreateCareersRequiredMessage_CId}"/>
                    <h:outputLabel value="#{bundle.CreateCareersLabel_name}" for="name" />
                    <h:inputText id="name" value="#{careersController.selected.name}" title="#{bundle.CreateCareersTitle_name}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_email}" for="email" />
                    <h:inputText id="email" value="#{careersController.selected.email}" title="#{bundle.CreateCareersTitle_email}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_phoneNo}" for="phoneNo" />
                    <h:inputText id="phoneNo" value="#{careersController.selected.phoneNo}" title="#{bundle.CreateCareersTitle_phoneNo}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_mobileNo}" for="mobileNo" />
                    <h:inputText id="mobileNo" value="#{careersController.selected.mobileNo}" title="#{bundle.CreateCareersTitle_mobileNo}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_jobReference}" for="jobReference" />
                    <h:inputText id="jobReference" value="#{careersController.selected.jobReference}" title="#{bundle.CreateCareersTitle_jobReference}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_experience}" for="experience" />
                    <h:inputText id="experience" value="#{careersController.selected.experience}" title="#{bundle.CreateCareersTitle_experience}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_comments}" for="comments" />
                    <h:inputTextarea rows="4" cols="30" id="comments" value="#{careersController.selected.comments}" title="#{bundle.CreateCareersTitle_comments}" />
                    <h:outputLabel value="#{bundle.CreateCareersLabel_cvUrl}" for="cvUrl" />
                    <h:inputText id="cvUrl" value="#{careersController.selected.cvUrl}" title="#{bundle.CreateCareersTitle_cvUrl}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{careersController.create}" value="#{bundle.CreateCareersSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{careersController.prepareList}" value="#{bundle.CreateCareersShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateCareersIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
